<template>
  <el-container class="container">
    <el-header class="header" style="height:80px">平台管理员管理</el-header>
    <el-container>
      <el-aside width="200px">
        <el-row>
          <el-col :span="24">
            <el-menu
              default-active="2"
              class="el-menu-vertical-demo"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b"
            >
              <el-submenu index="1">
                <template slot="title">
                  <span>管理员管理</span>
                </template>
                <el-menu-item index="1-1"><router-link to='/admin/adminIndex/adminPerson'>管理员列表</router-link></el-menu-item>
                <el-menu-item index="1-2"><router-link to='/admin/adminIndex/addadmin'>新增管理员</router-link></el-menu-item>
              </el-submenu>
              <el-submenu index="2">
                <template slot="title">
                  <span>商家信息管理</span>
                </template>
                <el-menu-item index="2-1"><router-link to='/admin/adminIndex/merchant'>商家信息列表</router-link></el-menu-item>
              </el-submenu>
              <el-submenu index="3">
                <template slot="title">
                  <span>门店信息管理</span>
                </template>
                <el-menu-item index="3-1"><router-link to='/admin/adminIndex/shopList'>门店信息列表</router-link></el-menu-item>
                <el-menu-item index="3-2"><router-link to='/admin/adminIndex/shShop'>门店审核信息</router-link></el-menu-item>
              </el-submenu>
            </el-menu>
          </el-col>
        </el-row>
      </el-aside>
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
    <el-footer>Footer</el-footer>
  </el-container>
</template>


<script>
const axios =require('axios')
export default {
  created(){

  },
methods:{
  login(){
    
    axios.get('pAdmins/isLogin').then(({data})=>{
      
    })
  }
}
}

</script>

<style scoped>
.container {
  height: 100vh;
}
a{
    text-decoration: none;
    color: white;
}
.router-link-exact-active{
    color: yellow;
}
body,
ul,
li,
div {
  padding: 0px;
  margin: 0px;
}

.el-header,
.el-footer {
  background-color: #414346;
  color: #333;
  text-align: center;
  line-height: 60px;
  color: white;
}
.header {
  font-size: 25px;
  line-height: 80px;
}
.el-aside {
  background-color: #d0d2d4;
  color: #333;
  text-align: center;
  line-height: 200px;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: normal;
}
.cell{
  display: flex;
}
</style>